package com.wh.common.pojo;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wh.org.pojo.Employee;
import lombok.Data;
import lombok.experimental.Accessors;
import org.joda.time.DateTime;

/**
 * 实体类：
 */
@Data
@Accessors(chain = true)
public class Task implements Serializable{

    @TableId(type = IdType.AUTO)
    private Integer  taskId;
    private String title;  //标题
    private String content;  //内容
    private String publisher; //发布人
    /**
     * 执行人员，员工管理员
     */
    @TableField(exist = false)
    private List<Long> executiveId=new ArrayList<>(); //执行人员id

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;    // 发布时间

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deadline;     //截止日期
    @TableField(exist = false)
    private Employee employees;

    private String jpg;

}
